import {Directive ,ElementRef} from "@angular/core";

@Directive({
    selector:'[yellowBg]'
})
export class YellowBg{
    constructor(el:ElementRef){
       
        el.nativeElement.style.backgroundColor="yellow";
    }
}